package codeRandomThoughts.Test6233温度转换;

public class Solution {
    public double[] convertTemperature(double celsius) {
        double kelvin = 0;
        double fahrenheit = 0;
        kelvin = celsius + 273.15F;
        kelvin = Math.ceil(kelvin * 100) / 100;
        fahrenheit = celsius * 1.8F + 32.00F;
        fahrenheit = Math.ceil(fahrenheit * 1000) / 1000;

        return new double[]{kelvin, fahrenheit};
    }
}
